using System;
using System.Collections.Generic;
using System.Text;
using DTO.PO;

namespace DAO.PO
{
    public class ReceiptDAO
    {
        // Tao. hoa' don (man` hinh` 2)
        public void InsertReceipt(Receipt receipt)
        {
            DataProvider provider = new DataProvider();
            provider.Open();
            string command = "insert into PO_Receipt(ReceiptName, Date, Type, PONumber, QtyTotal) values ("
                + receipt.ReceiptName + "," + receipt.Date + "," + receipt.Type + "," + receipt.PoNumber + "," + receipt.QtyTotal + ")";

            provider.ExcuteNonQuery(command);
            provider.Close();
        }
    }
}
